"""
情景记忆，用于存储和检索过去的经历。
"""

from typing import Any, Dict, List
from pydantic import BaseModel


class Episode(BaseModel):
    """一个完整的互动片段"""
    id: str
    query: str
    response: str
    reasoning_steps: List[Dict[str, Any]]
    tools_used: List[str]
    success: bool
    duration: float
    timestamp: float
    importance: float
    metadata: Dict[str, Any]
